package com.mycompany.virtualApp.service;

import com.mycompany.virtualApp.dao.BannerAdvDao;
import com.mycompany.virtualApp.dao.DesktopAdvDao;
import com.mycompany.virtualApp.entity.BannerAdvModel;
import com.mycompany.virtualApp.entity.DesktopAdvModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/12/6 0006.
 */
@Service("bannerAdvService")

public class BannerAdvServiceImpl implements BannerAdvService {
    @Autowired
    BannerAdvDao bannerAdvDao;


    @Override
    public List<BannerAdvModel> getBannerAdvList(Map<String, Object> map) {
        return bannerAdvDao.getBannerAdvList(map);

    }

    @Override
    public int saveBannerAdv(BannerAdvModel bannerAdvModel) {
        return bannerAdvDao.saveBannerAdv(bannerAdvModel);
    }

    @Override
    public int updateBanner(BannerAdvModel bannerAdvModel) {
        return bannerAdvDao.updateBanner(bannerAdvModel);
    }

    @Override
    public int delete(Map<String, Object> map) {
        return bannerAdvDao.delete(map);
    }
}
